home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7538 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Changing name of procedure in a library
  5. Date: 25 Feb 1996 11:40:49 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4gqe01INNt2o@keats.ugrad.cs.ubc.ca>
  8. References: <4frjts$k0c@news.unicomp.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4frjts$k0c@news.unicomp.net>,
  12. Mark Hoffman <mhoffman@unicomp.net> wrote:
  13.  >All,
  14.  >
  15.  >I sincerely hope this is not too off topic. 
  16.  >
  17.  >I have a situation where I am using a couple of libraries when I compile and 
  18.  >link my source code. The problem is, both libraries define the WEP. (Windows 
  19.  >Exit Procedure) The linker claims there is a redefinition of a procedure 
  20.  >(which there is) and quits. Is there a way around this?  I must use both 
  21.  >libraries, but I only need one copy of the procedure. Can I change the name in 
  22.  >one library? 
  23.  
  24. Get an editor that can edit binary files (vim, or a good hex editor). I wrote
  25. one for Unix called "hi", a word formed from "hex" + "vi". It's braindead in
  26. that it doesn't have regexp searches (yet).
  27.  
  28. Simply locate the symbol "Wep" and change it to "Wet" or something like that.
  29. Make sure you don't change the length of the file when you do this, or be
  30. prepared to suffer.
  31.  
  32. Change any relevant header declarations and you are set.
  33. -- 
  34.  
  35.